<template>
  <div class="App">
    <h2 class="content">我是app组件</h2>
    <button @click="getMsg">按钮</button>
    <Count ref="CountComp"></Count>
  </div>
</template>

<script>
import Count from "@/components/Count";

export default {
  name: 'App',
  components: {
    Count,
  },
  methods:{
    getMsg(){
      //拿到子组件的实例对数据的处理
      console.log(this.$refs)
    }
  }
}
</script>
